package com.share.quartz.service;

import java.io.Serializable;

import org.quartz.Job;
/**
 * Quartz 实体类接口   需实现以下方法
 * @author xianwei
 *
 */
public interface IQuartzJobEntity extends Serializable {

	public String toString();

	/**
	 * 获取trigger name
	 * 
	 * @return
	 */
	public String getTriggerName();

	/**
	 * 根据类名返回类class
	 * 
	 * @return
	 * @throws InstantiationException
	 * @throws IllegalAccessException
	 * @throws ClassNotFoundException
	 */
	public Class<? extends Job> getClazz() throws InstantiationException,
			IllegalAccessException, ClassNotFoundException;



	/**
	 * @return the jobName
	 */
	public String getJobName();


	/**
	 * @return the groupName
	 */
	public String getGroupName() ;

	/**
	 * @return the clazzName
	 */
	public String getClazzName() ;
	/**
	 * 获取表达式
	 * @return
	 */
	public String getCronExpression();
	/**
	 * 获取定时任务执行的方法  默认为 execute 
	 * @return
	 */
	public String getCronMethod();
}
